home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950528-19950726
/
000288_news@columbia.edu_Sun Jul 9 16:55:26 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA05445
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sun, 9 Jul 1995 12:55:29 -0400
Received: by apakabar.cc.columbia.edu id AA10984
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sun, 9 Jul 1995 12:55:28 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Reading data from a serial port
Date: 9 Jul 1995 16:55:26 GMT
Organization: Columbia University
Lines: 45
Message-Id: <3tp1lu$an6@apakabar.cc.columbia.edu>
References: <LOBO.95Jul7184920@konishiki.Stanford.EDU>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <LOBO.95Jul7184920@konishiki.Stanford.EDU>,
Donald Lobo <lobo@yahoo.com> wrote:
>I'm getting data fed into a serial port (com2, cua1) from a satellite news
>feed receiver. The data is pretty much ascii text with a few control
>character to indicate various newsfeed specific features (urgency,
>distribution, etc), and also start and stop control characters etc.
>
>Rather than sit and write a program to do this, I was wondering
>whether I could use a communications program avalaible in the public
>domain.
>
Perhaps, or you could use Kermit, which is copyrighted and not in
the public domain.
>1. Could I use kermit in receive mode to read the data from the serial
>port using the receive command, though the protocol is not kermit? Is
>there any way I could get kermit to take care of the data receiving
>part.
>
You did not say what operating system -- COM1 implies DOS, cua1 implies
UNIX. It doesn't make much difference. MS-DOS Kermit for DOS and Windows
and C-Kermit for UNIX have approximately the same capabilities in this
area.
There are lots of ways to accomplish what you need to do. The simplest
is simply "log session" while in CONNECT mode. This writes all the
incoming bytes to the session log file. To stop it, you would have to
"escape back" from CONNECT mode to the prompt and "close session".
Thus, starting and stopping the capture is manual.
You could also automate it by writing a script program in Kermit's
script programming language to look for article delimiters and then
direct each article to the desired file, opening and closing files
automatically based on the data stream.
If the "protocol" used by the news feed includes other types of information,
like sequencing, checksums, etc, you can even use Kermit's string-processing
and arithmetic functions to handle this.
For details about Kermit software and documentation (you'll have to read
the manual to learn how to write script programs), visit our Web site:
http://www.columbia.edu/kermit/
- Frank